package com.go.where.family.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.go.where.family.dao.TeacherRelationDao;
import com.go.where.family.pojo.TeacherRelationInfo;

@Repository("teacherRelationDao")
public class TeacherRelationDaoImpl extends
		BaseDaoImpl<TeacherRelationInfo, String> implements TeacherRelationDao {

	@Override
	public String getNameSpace() {
		return "mybatis.xml.TeacherRelationMapper";
	}

	@Override
	public List<TeacherRelationInfo> queryByTeacherId(
			TeacherRelationInfo teacherRelationInfo) {
		return getSqlSession().selectList(getNameSpace() + ".queryByTeacherId",
				teacherRelationInfo);
	}

}
